FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
RUN sed -i 's#http://deb.debian.org/#http://mirrors.aliyun.com/#' /etc/apt/sources.list;
RUN apt-get update -y && apt-get install -y openssh-client && apt-get install -y expect
ENV LANG C.UTF-8
ENV TZ="Asia/Shanghai"

FROM base AS final
WORKDIR /app
COPY . .
#ENV LANG C.UTF-8
#ENV TZ="Asia/Shanghai"
EXPOSE 80
ENTRYPOINT ["dotnet", "OpenPasteSpider.HttpApi.Host.dll"]